package com.yc.bbs.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.List;

import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * BBS论坛-板块表-13
 * </p>
 *
 * @author k
 * @since 2024-11-25
 */
@Getter
@Setter
@TableName("tbl_board")
public class TblBoard implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 编号, 自增列
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 板块名
     */
    @TableField("boardname")
    private String boardname;

    /**
     * 父板块编号
     */
    @TableField("parentid")
    private Integer parentid;
    @TableField(exist = false)
    List<TblBoard> children;

    @TableField(exist = false)
    Integer topicCnt;

    @TableField(exist = false)
    TblTopic maxTopic;
}
